package com.leo.employ.config

import org.mybatis.spring.mapper.MapperScannerConfigurer
import org.springframework.boot.autoconfigure.AutoConfigureAfter
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
@AutoConfigureAfter(MybatiesConfig::class)
class MapperScannerConfig {

    @Bean
    fun mapperScannerConfigurer(): MapperScannerConfigurer {
        val configurer = MapperScannerConfigurer()
        configurer.setBasePackage("com.leo.employ.mapper")
        return configurer
    }
}